import { $t } from "@/plugins/i18n";
import { home } from "@/router/enums";
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/role",
  name: "Role",
  component: Layout,
  redirect: "/role/list",
  meta: {
    icon: "ep:avatar",
    title: "角色管理",
    rank: home + 2
  },
  children: [
    {
      path: "/role/list",
      name: "RoleList",
      component: () => import("@/views/role/list.vue"),
      meta: {
        title: "角色列表"
      }
    },
    {
      path: "/role/create",
      name: "RoleCreate",
      component: () => import("@/views/role/create.vue"),
      meta: {
        title: "新增角色"
      }
    },
    {
      path: "/role/edit/:id",
      name: "RoleEdit",
      component: () => import("@/views/role/edit.vue"),
      meta: {
        title: "编辑角色"
      }
    }
  ]
} satisfies RouteConfigsTable;